﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Wo_months.Models;
using Wo_months.IBLL;
using Wo_months.BLL;

namespace Wo_months.Web.Controllers
{
    [ApiController]
    [Route("[controller]/[action]")]
    public class ValuesController : ControllerBase
    {
        private static readonly string[] Summaries = new[]
        {
            "afd", "fad", "bxv", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
        };

        private readonly ILogger<ValuesController> _logger;
        private readonly IBLL.IEnglishManager _english;

        public ValuesController(ILogger<ValuesController> logger, IBLL.IEnglishManager english)
        {
            _logger = logger;
            _english = english;
        }

        [HttpGet]
        public List<English> Get()
        {
            return _english.GetAllEnglish();
        }
    }
}
